/* 表情选择器样式 */
.emoji-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    margin-right: 5px;
    transition: all 0.2s;
    border-radius: 4px;
}

.emoji-btn {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.emoji-btn:hover {
    transform: scale(1.1);
}

.emoji-btn:active {
    transform: scale(0.95);
}

.emoji-button:hover {
    background-color: #f0f0f0;
}

.emoji-picker {
    position: absolute;
    bottom: 70px;
    left: 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    display: none;
    z-index: 100;
    width: 280px;
    max-height: 350px;
    overflow-y: auto;
}

/* 表情包选择器样式 */
.emoji-pack-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 6px;
    border: 1px solid #eee;
}

.emoji-pack-title {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.emoji-pack-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    width: calc(20% - 8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.emoji-pack-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.emoji-pack-name {
    font-size: 12px;
    color: #666;
    text-align: center;
}

.emoji-pack-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.emoji-pack-option.active {
    background-color: #e6f2ff;
    border-color: #007bff;
    color: #007bff;
}

.emoji-pack-option.active .emoji-pack-name {
    color: #007bff;
    font-weight: bold;
}

.emoji-picker-header {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.emoji-search {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
}

.emoji-picker.active {
    display: block;
}

.recent-emojis {
    margin: 0 8px;
}

.recent-title {
    padding: 5px;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #eee;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 5px 0;
}

.emoji-tabs {
    display: flex;
    overflow-x: auto;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

.emoji-tab {
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 3px;
    margin: 0 2px;
}

.emoji-tab:hover {
    background-color: #e0e0e0;
}

.emoji-tab.active {
    background-color: #007bff;
    color: white;
}

.emoji-content {
    position: relative;
    max-height: 200px;
    overflow-y: auto;
}

.emoji-picker .emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 5px;
}

.no-result {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.emoji-item {
    font-size: 24px;
    cursor: pointer;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s;
}

.emoji-item:hover {
    background-color: #f0f0f0;
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(0.95);
}

/* 表情在消息中的样式 */
.message-bubble .emoji {
    font-size: 22px;
    vertical-align: middle;
    margin: 0 2px;
}